package com.pengweiwei.androidzygote.mine.data;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

import com.pengweiwei.androidzygote.BR;

import java.io.Serializable;
import java.util.List;

public class CollectionBean extends BaseObservable implements Serializable {

    /**
     * id : 822180963974397952
     * remarks :
     * createDate : 2020-09-22 16:52:23
     * updateDate :
     * userId : 798954749837803520
     * collectId : 797805837806972928
     * type : video
     * title : 左耳
     * images : http://47.112.147.136:80/userfiles/20200811/Bade32b77-3dce-4c18-9291-b2e9da5287f9.png
     * labels : 814122391113162752,814122345264820224
     * timeLong : 1:00
     * playNum : 2349
     * likeNum : 0
     * ids :
     * labelList : [{"id":"814122345264820224","remarks":"","createDate":"2020-08-31 11:10:19","updateDate":"2020-08-31 11:10:19","name":"动漫","color":"#DB80D6"},{"id":"814122391113162752","remarks":"","createDate":"2020-08-31 11:10:30","updateDate":"2020-08-31 11:10:30","name":"同人","color":"#4241BF"}]
     */

    private String id;
    private String remarks;
    private String createDate;
    private String updateDate;
    private String userId;
    private String collectId;
    private String type;
    private String title;
    private String images;
    private String labels;
    private String timeLong;
    private String playNum;
    private String likeNum;
    private String ids;
    private List<LabelListBean> labelList;
    private boolean isChecked;

    @Bindable
    public boolean getIsChecked() {
        return isChecked;
    }

    public void setIsChecked(boolean isChecked) {
        this.isChecked = isChecked;
        notifyPropertyChanged(BR.isChecked);
    }
    @Bindable
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
        notifyPropertyChanged(BR.id);
    }

    @Bindable
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
        notifyPropertyChanged(BR.remarks);
    }

    @Bindable
    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
        notifyPropertyChanged(BR.createDate);
    }

    @Bindable
    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
        notifyPropertyChanged(BR.updateDate);
    }

    @Bindable
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
        notifyPropertyChanged(BR.userId);
    }

    @Bindable
    public String getCollectId() {
        return collectId;
    }

    public void setCollectId(String collectId) {
        this.collectId = collectId;
        notifyPropertyChanged(BR.collectId);
    }

    @Bindable
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
        notifyPropertyChanged(BR.type);
    }

    @Bindable
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
        notifyPropertyChanged(BR.title);
    }

    @Bindable
    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
        notifyPropertyChanged(BR.images);
    }

    @Bindable
    public String getLabels() {
        return labels;
    }

    public void setLabels(String labels) {
        this.labels = labels;
        notifyPropertyChanged(BR.labels);
    }

    @Bindable
    public String getTimeLong() {
        return timeLong;
    }

    public void setTimeLong(String timeLong) {
        this.timeLong = timeLong;
        notifyPropertyChanged(BR.timeLong);
    }

    @Bindable
    public String getPlayNum() {
        return playNum;
    }

    public void setPlayNum(String playNum) {
        this.playNum = playNum;
        notifyPropertyChanged(BR.playNum);
    }

    @Bindable
    public String getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(String likeNum) {
        this.likeNum = likeNum;
        notifyPropertyChanged(BR.likeNum);
    }

    @Bindable
    public String getIds() {
        return ids;
    }

    public void setIds(String ids) {
        this.ids = ids;
        notifyPropertyChanged(BR.ids);
    }

    @Bindable
    public List<LabelListBean> getLabelList() {
        return labelList;
    }

    public void setLabelList(List<LabelListBean> labelList) {
        this.labelList = labelList;
        notifyPropertyChanged(BR.labelList);
    }

    @Override
    public String toString() {
        return "CollectionBean{" +
                "id='" + id + '\'' +
                ", remarks='" + remarks + '\'' +
                ", createDate='" + createDate + '\'' +
                ", updateDate='" + updateDate + '\'' +
                ", userId='" + userId + '\'' +
                ", collectId='" + collectId + '\'' +
                ", type='" + type + '\'' +
                ", title='" + title + '\'' +
                ", images='" + images + '\'' +
                ", labels='" + labels + '\'' +
                ", timeLong='" + timeLong + '\'' +
                ", playNum='" + playNum + '\'' +
                ", likeNum='" + likeNum + '\'' +
                ", ids='" + ids + '\'' +
                ", labelList=" + labelList +
                ", isChecked=" + isChecked +
                '}';
    }

    public static class LabelListBean extends BaseObservable {
        /**
         * id : 814122345264820224
         * remarks :
         * createDate : 2020-08-31 11:10:19
         * updateDate : 2020-08-31 11:10:19
         * name : 动漫
         * color : #DB80D6
         */

        private String id;
        private String remarks;
        private String createDate;
        private String updateDate;
        private String name;
        private String color;

        @Bindable
        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
            notifyPropertyChanged(BR.id);
        }

        @Bindable
        public String getRemarks() {
            return remarks;
        }

        public void setRemarks(String remarks) {
            this.remarks = remarks;
            notifyPropertyChanged(BR.remarks);
        }

        @Bindable
        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
            notifyPropertyChanged(BR.createDate);
        }

        @Bindable
        public String getUpdateDate() {
            return updateDate;
        }

        public void setUpdateDate(String updateDate) {
            this.updateDate = updateDate;
            notifyPropertyChanged(BR.updateDate);
        }

        @Bindable
        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
            notifyPropertyChanged(BR.name);
        }

        @Bindable
        public String getColor() {
            return color;
        }

        public void setColor(String color) {
            this.color = color;
            notifyPropertyChanged(BR.color);
        }
    }
}
